<?php

class DefaultController extends Controller
{
	public function actionIndex()
	{
		$model = Content::model()->findAll('content_categoryId = 3');
		$this->render('index',array(
			'model'=>$model,
		));
	}
	
	public function actionCms($id)
	{
		$model = Content::model()->find("id = $id");
		$this->render('cms',array(
			'model'=>$model,
		));
	}
}